package com.bluesky.server;

import java.io.File;
import java.util.List;

import com.bluesky.model.Pages;
import com.bluesky.model.User;

public interface UserServer {

	public boolean AddUser(String uname, String sex,String sno, String pwd, String phone1,
			String phone2, String address, String birthday, String email,
			String QQnumber, String weixin,String classname);

	public List<User> getUserBy(String sno, String pwd);

	public List<User> getUserAllPage(int pageNow);

	public Pages getPages();

	public List<User> getUserBySno(String sno);

	public User getUserById(int parseInt);

	public int DeletById(int parseInt);

	public User getByNamePwd(String name,String pwd);
	
	public int UpdateById(int uid, String uname,String sex,String classname, String sno, String pwd,
			String phone1, String phone2, String address, String birthday,
			String email, String QQnumber, String weixin);

	public List<User> getUserAllPageByAnd(int i, String sno, String uname,
			String classname, String address);

	public List<User> LoadAminBynamePwd(String uname, String pwd);
	
	public List<User> getByNextId(int uid);
	
	public List<User> getBylastId(int uid);

	public List<User> getuserByidRlist(int uid);

	public int AddFileOne(String imageFileName, File image, int parseInt);

	public List<User> getUserAll(String classname);

	public void DrivateDaying(String classname) throws Exception;

	public List<User> getUserAll();

	public List<String> getUserAllclassname();
	
}
